	import {
		store,
	} from "@/uni_modules/uni-id-pages/common/store.js"

	const notLoginPage = ['feedBack', 'about']

	const cardConfig = {
		before(item) {
			if (store.hasLogin || notLoginPage.includes(item.effect)) {
				return {
					status: 'success'
				}
			} else {
				return {
					status: 'error',
					error: '请登录~~'
				}
			}
		},
		list: [{
				desc: "我的发布",
				path: "/pages/article/list",
				icon: 'icon-a-24-bianji',
				color: '#5DC9E6'
			},
			{
				desc: "我的点赞",
				path: "/pages/like/like",
				icon: 'icon-a-106-xihuan',
				color: '#FF6D60'
			}, {
				desc: "我的评论",
				path: "/pages/comment-list/comment-list",
				icon: 'icon-a-21-xiugai',
				color: '#22823A'
			}, {
				desc: "关于",
				type: "emit",
				effect: "about",
				icon: 'icon-a-32-wenjian',
				color: '#D14D72'
			}, {
				desc: "意见反馈",
				path: "/uni_modules/uni-feedback/pages/opendb-feedback/opendb-feedback",
				effect: "feedBack",
				icon: 'icon-a-5-xinxi',
				color: '#009FBD'
			}, {
				type: "emit",
				effect: "loginOut",
				desc: "退出登录",
				icon: 'icon-a-73-tuichu',
				color: '#E8A0BF'
			},
		]
	}

	export {
		cardConfig
	}